package fr.gadcparis.envieparisienne;

import java.util.ArrayList;

import fr.gadcparis.envieparisienne.model.Hit;

public class Singleton {
    private static Singleton _instance;
    private  ArrayList<Hit> myList;

    private Singleton() {
        myList = new ArrayList<Hit>();
    }

    public static synchronized Singleton getInstance() {
        if (_instance==null) {
            _instance = new Singleton();
        }
        return _instance;
    }

    public ArrayList<Hit> getMyList(){
        return myList;
    }

    public void setMyList(ArrayList<Hit> a){
    	myList = new ArrayList<Hit>(a);
    }
    
} 